package com.example.domian.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * ClassName: UserStatus
 * Package: com.example.domian.enums
 * Description:
 *
 * @Author: yyx
 * @Create: 2025/7/17 - 14:15
 */
@Getter
public enum UserStatus {
    NORMAL(1,"正常"),
    FREEZE(2,"冻结");
    @EnumValue
    private  final  int value;
    @JsonValue
    private  final String desc;

    UserStatus(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }
}
